const multer = require('multer')

const upload = multer({dest: 'upload'})

const single = (name, req) => {
  upload.single('file')
}